/*
package com.mmall.service;

*/
/**
 * 代理类测试
 * Created by qezhhnjy on 2017/10/14-1:57.
 *//*


import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.core.Ordered;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class User implements Ordered {

    static {
        System.out.println("代理模式及==Service层代理");
    }

    @Pointcut(value = "execution(* com.mmall.service.impl.*.*(..))")
    public void test() {
    }

    @Before(value = "test()")
    public void tt() {
        System.out.println("Service代理,测试-----------------");
    }

    //通过实现Ordered来指定切面的执行顺序,同一切面内切点按声明顺序排序.before执行顺序由优先级高-低
    //after执行顺序由优先级低-高.即优先级高的最后执行,这里看似不同,其实从优先级角度来理解是正确的.
    @Override
    public int getOrder() {
        return 0;
    }
}
*/
